package com.cn.kehong.domain;

import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.List;
import java.util.Map;

public class ProductPackage {
    private String id;

    private String peiId;

    private String materialId;

    private String materialCode;

    private String materialName;

    private String gradeValue;

    private String factoryName;

    private String packageRoom;

    private String wuXin;

    private String packageStatus;

    private String jizuNum;

    private String productCode;

    private String theoryNum;

    private String completeNum;

    private String uncompleteNum;

    private String packageStartTime;

    private String packageEndTime;

    private String status;

    private Date createTime;

    private Date updateTime;

    private String banCi;

    private String productName;

    private String productCodeStr;
    private String hasBind;
    private Integer count;

    private String spendTime;
    private String singleJizu;
    private String jobIndex;
    private String printCode;
    private String checkCode;
    private String checkCodeTime;
    private Integer baoBiaoNum = 0;
    private List<ProductPackageJob> productPackageJobs;

    private String remake;
    public static final transient Map<String, String> STATUSMAP =
            ImmutableMap.of("0", "进行中", "1", "已完成");

    public static final transient Map<String, String> STATUSBINDMAP =
            ImmutableMap.of("0", "绑定中", "1", "已绑定");

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getPeiId() {
        return peiId;
    }

    public void setPeiId(String peiId) {
        this.peiId = peiId == null ? null : peiId.trim();
    }

    public String getMaterialId() {
        return materialId;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId == null ? null : materialId.trim();
    }

    public String getMaterialCode() {
        return materialCode;
    }

    public void setMaterialCode(String materialCode) {
        this.materialCode = materialCode == null ? null : materialCode.trim();
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName == null ? null : materialName.trim();
    }

    public String getGradeValue() {
        return gradeValue;
    }

    public void setGradeValue(String gradeValue) {
        this.gradeValue = gradeValue == null ? null : gradeValue.trim();
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName == null ? null : factoryName.trim();
    }

    public String getPackageRoom() {
        return packageRoom;
    }

    public void setPackageRoom(String packageRoom) {
        this.packageRoom = packageRoom == null ? null : packageRoom.trim();
    }

    public String getWuXin() {
        return wuXin;
    }

    public void setWuXin(String wuXin) {
        this.wuXin = wuXin == null ? null : wuXin.trim();
    }

    public String getPackageStatusCn() {
        return STATUSMAP.get(getPackageStatus());
    }
    public String getPackageStatus() {
        return packageStatus;
    }

    public void setPackageStatus(String packageStatus) {
        this.packageStatus = packageStatus == null ? null : packageStatus.trim();
    }

    public String getJizuNum() {
        return jizuNum;
    }

    public void setJizuNum(String jizuNum) {
        this.jizuNum = jizuNum == null ? null : jizuNum.trim();
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode == null ? null : productCode.trim();
    }

    public String getTheoryNum() {
        return theoryNum;
    }

    public void setTheoryNum(String theoryNum) {
        this.theoryNum = theoryNum == null ? null : theoryNum.trim();
    }

    public String getCompleteNum() {
        return completeNum;
    }

    public void setCompleteNum(String completeNum) {
        this.completeNum = completeNum == null ? null : completeNum.trim();
    }

    public String getUncompleteNum() {
        return uncompleteNum;
    }

    public void setUncompleteNum(String uncompleteNum) {
        this.uncompleteNum = uncompleteNum == null ? null : uncompleteNum.trim();
    }

    public String getPackageStartTime() {
        return packageStartTime;
    }

    public void setPackageStartTime(String packageStartTime) {
        this.packageStartTime = packageStartTime == null ? null : packageStartTime.trim();
    }

    public String getPackageEndTime() {
        return packageEndTime;
    }

    public void setPackageEndTime(String packageEndTime) {
        this.packageEndTime = packageEndTime == null ? null : packageEndTime.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getBanCi() {
        return banCi;
    }

    public void setBanCi(String banCi) {
        this.banCi = banCi == null ? null : banCi.trim();
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName == null ? null : productName.trim();
    }

    public List<ProductPackageJob> getProductPackageJobs() {
        return productPackageJobs;
    }

    public void setProductPackageJobs(List<ProductPackageJob> productPackageJobs) {
        this.productPackageJobs = productPackageJobs;
    }

    public String getHasBind() {
        return hasBind;
    }

    public String getHasBindCn() {
        return STATUSBINDMAP.get(getHasBind());
    }

    public void setHasBind(String hasBind) {
        this.hasBind = hasBind;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getProductCodeStr() {
        return productCodeStr;
    }

    public void setProductCodeStr(String productCodeStr) {
        this.productCodeStr = productCodeStr;
    }

    public String getSpendTime() {
        return spendTime;
    }

    public void setSpendTime(String spendTime) {
        this.spendTime = spendTime;
    }

    public String getSingleJizu() {
        return singleJizu;
    }

    public void setSingleJizu(String singleJizu) {
        this.singleJizu = singleJizu;
    }

    public String getPrintCode() {
        return printCode;
    }

    public void setPrintCode(String printCode) {
        this.printCode = printCode;
    }

    public String getJobIndex() {
        return jobIndex;
    }

    public void setJobIndex(String jobIndex) {
        this.jobIndex = jobIndex;
    }

    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    public String getCheckCodeTime() {
        return checkCodeTime;
    }

    public void setCheckCodeTime(String checkCodeTime) {
        this.checkCodeTime = checkCodeTime;
    }

    public Integer getBaoBiaoNum() {
        return baoBiaoNum;
    }

    public void setBaoBiaoNum(Integer baoBiaoNum) {
        this.baoBiaoNum = baoBiaoNum;
    }

    public String getRemake() {
        return remake;
    }

    public void setRemake(String remake) {
        this.remake = remake;
    }
}